package pinyinJava.utils;

import java.util.Timer;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.atomic.AtomicInteger;

public class TimerUtil {

    public static void start(AtomicInteger atomicInteger, int total, ExecutorService executorService) {
        Timer timer = new Timer();
        timer.schedule(new MyTimerTask(timer, atomicInteger, total, executorService), 0, 3000);
    }
}
